<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script  >
    var imgs =["../../img/1.jpg", "../../img/2.jpg", "../../img/3.jpg","../../img/4.jpg","../../img/5.jpg"]; 
     var x = 0;        
        function time(){
               x++;    
               x=x%5;        
               document.getElementById("tu").src =imgs[x];
        }
        function stoptupian(){
     window.clearInterval(dingshi);
       }
       function dongqilai(){
      dingshi=window.setInterval("time()",1000);
     }

</script>
	</head>
	<body>
		 <img id="tu" src="../../img/1.jpg " onmouseover="stoptupian()" onmouseout="dongqilai()" />
	</body>
</html>
